﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using Microsoft.Reporting.WebForms;

namespace Fish_Atlantis.SupplierPanel
{
    public partial class Dashboard : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          
           // ReportViewer rv = (ReportViewer)(DataList1);
            /*Session["UserID"] = 2;
            Session["UserName"] ="s2";
            ReportViewer1.LocalReport.ReportPath = @"SupplierPanel\Report4.rdlc";
            //加载参数
            ReportParameter rp = new ReportParameter("FName", "Carribean Salmon");
            ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp });
            //刷新显示
            ReportViewer1.LocalReport.Refresh();*/
           
        }

        protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
        {
           /* Label fa = (Label)(e.Item.FindControl("FisheryNameLabel"));
            /*rv.LocalReport.ReportPath = @"SupplierPanel\Report4.rdlc";
            //加载参数
            ReportParameter rp = new ReportParameter("FName",fa.Text.ToString());
            rv.LocalReport.SetParameters(new ReportParameter[] { rp });
            //刷新显示
           rv.LocalReport.Refresh();*/

        }
    }
}